package com.ruoyi.vplat.config;

import javax.annotation.PostConstruct;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Configuration;

import com.ruoyi.vplat.service.IVplatGatewayService;

import lombok.extern.slf4j.Slf4j;

@Configuration
@Slf4j
public class VplatAutoConfig {
	@Autowired
	private IVplatGatewayService gatewayService;
	@PostConstruct
	void init() {
		gatewayService.downAll();
		log.info("系统重启下线所有网关");
	}
}
